package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品入库对象 product_stock_in
 *
 * @author ruoyi
 * @date 2025-05-30
 */
public class ProductStockIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 创建开始时间，记录创建入库单的起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建开始时间，记录创建入库单的起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createStartTime;

    /** 创建结束时间，记录创建入库单的结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建结束时间，记录创建入库单的结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createEndTime;

    /** 入库开始时间，记录实际开始入库操作的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库开始时间，记录实际开始入库操作的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stockInStartTime;

    /** 入库结束时间，记录实际完成入库操作的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库结束时间，记录实际完成入库操作的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stockInEndTime;

    /** 仓库名称，记录入库操作发生的仓库 */
    @Excel(name = "仓库名称，记录入库操作发生的仓库")
    private String warehouseName;

    /** 入库单号，唯一标识一次入库操作 */
    @Excel(name = "入库单号，唯一标识一次入库操作")
    private String stockInNumber;

    /** 入库类型，例如：采购入库、退货入库等 */
    @Excel(name = "入库类型，例如：采购入库、退货入库等")
    private String stockInType;

    /** 入库员工，记录执行入库操作的员工姓名或ID */
    @Excel(name = "入库员工，记录执行入库操作的员工姓名或ID")
    private String stockInEmployee;

    /** 创建员工，记录创建入库单的员工姓名或ID */
    @Excel(name = "创建员工，记录创建入库单的员工姓名或ID")
    private String createEmployee;

    /** 备注，记录入库操作的额外说明或特殊情况 */
    @Excel(name = "备注，记录入库操作的额外说明或特殊情况")
    private String notes;

    /** 序号，用于排序或标识入库单中的商品顺序 */
    @Excel(name = "序号，用于排序或标识入库单中的商品顺序")
    private Long serialNumber;

    /** 类别，用于区分商品、配品、原料等 */
    @Excel(name = "类别，用于区分商品、配品、原料等")
    private String category;

    /** 分类，用于进一步细分商品类别 */
    @Excel(name = "分类，用于进一步细分商品类别")
    private String subcategory;

    /** 商品名称，记录入库商品的名称 */
    @Excel(name = "商品名称，记录入库商品的名称")
    private String productName;

    /** 规格，描述入库商品的规格信息 */
    @Excel(name = "规格，描述入库商品的规格信息")
    private String specification;

    /** 库存数量，记录入库前该商品在仓库中的库存数量（可选，根据实际需求决定是否需要） */
    @Excel(name = "库存数量，记录入库前该商品在仓库中的库存数量", readConverterExp = "可=选，根据实际需求决定是否需要")
    private Long existingInventory;

    /** 入库数量，记录本次入库的商品数量 */
    @Excel(name = "入库数量，记录本次入库的商品数量")
    private Long stockInQuantity;

    /** 采购单价，记录本次入库商品的采购单价 */
    @Excel(name = "采购单价，记录本次入库商品的采购单价")
    private BigDecimal purchaseUnitPrice;

    /** 总值，记录本次入库商品的总价值（入库数量 * 采购单价） */
    @Excel(name = "总值，记录本次入库商品的总价值", readConverterExp = "入=库数量,*=,采=购单价")
    private BigDecimal totalValue;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setCreateStartTime(Date createStartTime)
    {
        this.createStartTime = createStartTime;
    }

    public Date getCreateStartTime()
    {
        return createStartTime;
    }

    public void setCreateEndTime(Date createEndTime)
    {
        this.createEndTime = createEndTime;
    }

    public Date getCreateEndTime()
    {
        return createEndTime;
    }

    public void setStockInStartTime(Date stockInStartTime)
    {
        this.stockInStartTime = stockInStartTime;
    }

    public Date getStockInStartTime()
    {
        return stockInStartTime;
    }

    public void setStockInEndTime(Date stockInEndTime)
    {
        this.stockInEndTime = stockInEndTime;
    }

    public Date getStockInEndTime()
    {
        return stockInEndTime;
    }

    public void setWarehouseName(String warehouseName)
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName()
    {
        return warehouseName;
    }

    public void setStockInNumber(String stockInNumber)
    {
        this.stockInNumber = stockInNumber;
    }

    public String getStockInNumber()
    {
        return stockInNumber;
    }

    public void setStockInType(String stockInType)
    {
        this.stockInType = stockInType;
    }

    public String getStockInType()
    {
        return stockInType;
    }

    public void setStockInEmployee(String stockInEmployee)
    {
        this.stockInEmployee = stockInEmployee;
    }

    public String getStockInEmployee()
    {
        return stockInEmployee;
    }

    public void setCreateEmployee(String createEmployee)
    {
        this.createEmployee = createEmployee;
    }

    public String getCreateEmployee()
    {
        return createEmployee;
    }

    public void setNotes(String notes)
    {
        this.notes = notes;
    }

    public String getNotes()
    {
        return notes;
    }

    public void setSerialNumber(Long serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public Long getSerialNumber()
    {
        return serialNumber;
    }

    public void setCategory(String category)
    {
        this.category = category;
    }

    public String getCategory()
    {
        return category;
    }

    public void setSubcategory(String subcategory)
    {
        this.subcategory = subcategory;
    }

    public String getSubcategory()
    {
        return subcategory;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }

    public void setSpecification(String specification)
    {
        this.specification = specification;
    }

    public String getSpecification()
    {
        return specification;
    }

    public void setExistingInventory(Long existingInventory)
    {
        this.existingInventory = existingInventory;
    }

    public Long getExistingInventory()
    {
        return existingInventory;
    }

    public void setStockInQuantity(Long stockInQuantity)
    {
        this.stockInQuantity = stockInQuantity;
    }

    public Long getStockInQuantity()
    {
        return stockInQuantity;
    }

    public void setPurchaseUnitPrice(BigDecimal purchaseUnitPrice)
    {
        this.purchaseUnitPrice = purchaseUnitPrice;
    }

    public BigDecimal getPurchaseUnitPrice()
    {
        return purchaseUnitPrice;
    }

    public void setTotalValue(BigDecimal totalValue)
    {
        this.totalValue = totalValue;
    }

    public BigDecimal getTotalValue()
    {
        return totalValue;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createStartTime", getCreateStartTime())
                .append("createEndTime", getCreateEndTime())
                .append("stockInStartTime", getStockInStartTime())
                .append("stockInEndTime", getStockInEndTime())
                .append("warehouseName", getWarehouseName())
                .append("stockInNumber", getStockInNumber())
                .append("stockInType", getStockInType())
                .append("stockInEmployee", getStockInEmployee())
                .append("createEmployee", getCreateEmployee())
                .append("notes", getNotes())
                .append("serialNumber", getSerialNumber())
                .append("category", getCategory())
                .append("subcategory", getSubcategory())
                .append("productName", getProductName())
                .append("specification", getSpecification())
                .append("existingInventory", getExistingInventory())
                .append("stockInQuantity", getStockInQuantity())
                .append("purchaseUnitPrice", getPurchaseUnitPrice())
                .append("totalValue", getTotalValue())
                .append("phone", getPhone())
                .toString();
    }
}
